Dart.Mail Namespace > Attachment Class > Attachment Constructor : Attachment Constructor(Byte[],String) |
Dim content() As Byte Dim fileName As String Dim instance As New Attachment(content, fileName)
public: Attachment( array<byte>^ content, String^ fileName )
ContentType.MediaType is set using GetMediaTypeFromExtension. TransferEncoding is set to TransferEncoding.Base64. Attachment.ContentDisposition.Inline is initialized to false. Attachment.ContentDisposition.Inline can be set to true if the attachment should be viewed "inline".
Data is accessible through GetContentStream